﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace BankCreditPortfolio.Areas.Admin.Models
{
    public class CurrencyModel
    {
        public int CurrencyId { get; set; }

        [Required]
        [Display(Name = "Currency Title")]
        [RegularExpression(@"^[A-Za-z]{2,40}$", ErrorMessage = "Currency title must contain only alphabet symbols and it's length must be between 2 and 40 symbols.")]
        public string Title { get; set; }
    }
}